From: Rob Church Date: Wed, 22 Aug 2007 06:41:50 +0000 (+0000) Subject: (bug 9339) Use wfMsgExt() in OutputPage::showErrorPage() to avoid the old issue with... X-Git-Tag: 1.31.0-rc.0~51702 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=3623ae0f5f5d919d57d28b470fe8addb5b8cb385;p=lhc%2Fweb%2Fwiklou.git (bug 9339) Use wfMsgExt() in OutputPage::showErrorPage() to avoid the old issue with incorrect/inconsistent message transformation and braces --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0cfc6acacb..f3e769bae7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -394,6 +394,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7890) Don't list redirects to special pages in Special:BrokenRedirects * (bug 10783) Resizing PNG-24 images causes all alpha channel transparency to be lost and transparent pixels to be turned black +* (bug 9339) General error pages were transforming messages and their parameters + in the wrong order == API changes since 1.10 == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ae68f639fa..66fbb8d5d4 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -822,9 +822,9 @@ class OutputPage { $this->mRedirect = ''; $this->mBodytext = ''; + array_unshift( $params, 'parse' ); array_unshift( $params, $msg ); - $message = call_user_func_array( 'wfMsg', $params ); - $this->addWikiText( $message ); + $this->addHtml( call_user_func_array( 'wfMsgExt', $params ) ); $this->returnToMain( false ); }